package com.dragon.modules.yuegou.model.act;

import com.dragon.modules.yuegou.entity.act.GiftGoodsRefEntity;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 送礼物品关联表模型类
 *
 * @author pbuilder generated
 * @date 2021-05-11 17:32:49
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class GiftGoodsRef extends GiftGoodsRefEntity {

	@ApiModelProperty(value = "属性")
	private String attrs;

	public String getAttrs() {
		return attrs;
	}

	public void setAttrs(String attrs) {
		this.attrs = attrs;
	}

	/**
	 * 构造一个空送礼物品关联表模型对象
	 */
	public GiftGoodsRef(){
		super();
	}

	/**
	 * 依据实体对象的信息构造一个送礼物品关联表模型对象
	 *
	 * @param entity 实体对象
	 */
	public GiftGoodsRef(GiftGoodsRefEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个送礼物品关联表模型对象
	 *
	 * @param other 其它对象
	 */
	public GiftGoodsRef(GiftGoodsRef other){
		super(other);
	}


	@Override
	public String getId() {
		return id;
	}

	/**
	 * 设置
	 *
	 * @param id
	 * @return 当前对象
	 */
	public GiftGoodsRef id(String id) {
		this.id = id;
		return this;
	}

	@Override
	public Integer getSortNo() {
		return sortNo;
	}

	/**
	 * 设置排序
	 *
	 * @param sortNo 排序
	 * @return 当前对象
	 */
	public GiftGoodsRef sortNo(Integer sortNo) {
		this.sortNo = sortNo;
		return this;
	}

	@Override
	public String getGiftId() {
		return giftId;
	}

	/**
	 * 设置送礼表id
	 *
	 * @param giftId 送礼表id
	 * @return 当前对象
	 */
	public GiftGoodsRef giftId(String giftId) {
		this.giftId = giftId;
		return this;
	}

	@Override
	public String getArticleId() {
		return articleId;
	}

	/**
	 * 设置活动物品id
	 *
	 * @param articleId 活动物品id
	 * @return 当前对象
	 */
	public GiftGoodsRef articleId(String articleId) {
		this.articleId = articleId;
		return this;
	}

	@Override
	public String getCommodityName() {
		return commodityName;
	}

	/**
	 * 设置活动商品名称
	 *
	 * @param commodityName 活动商品名称
	 * @return 当前对象
	 */
	public GiftGoodsRef commodityName(String commodityName) {
		this.commodityName = commodityName;
		return this;
	}

	@Override
	public Integer getArticlePoints() {
		return articlePoints;
	}

	/**
	 * 设置活动积分
	 *
	 * @param articlePoints 活动积分
	 * @return 当前对象
	 */
	public GiftGoodsRef articlePoints(Integer articlePoints) {
		this.articlePoints = articlePoints;
		return this;
	}

	@Override
	public Integer getQuantity() {
		return quantity;
	}

	/**
	 * 设置数量
	 *
	 * @param quantity 数量
	 * @return 当前对象
	 */
	public GiftGoodsRef quantity(Integer quantity) {
		this.quantity = quantity;
		return this;
	}

	@Override
	public String getCreatedBy() {
		return createdBy;
	}

	/**
	 * 设置创建人ID
	 *
	 * @param createdBy 创建人ID
	 * @return 当前对象
	 */
	public GiftGoodsRef createdBy(String createdBy) {
		this.createdBy = createdBy;
		return this;
	}

	@Override
	public LocalDateTime getCreatedTime() {
		return createdTime;
	}

	/**
	 * 设置创建时间
	 *
	 * @param createdTime 创建时间
	 * @return 当前对象
	 */
	public GiftGoodsRef createdTime(LocalDateTime createdTime) {
		this.createdTime = createdTime;
		return this;
	}

	@Override
	public Boolean getDel() {
		return del;
	}

	/**
	 * 设置逻辑删除，1表示已删除,0表示未删除
	 *
	 * @param del 逻辑删除，1表示已删除,0表示未删除
	 * @return 当前对象
	 */
	public GiftGoodsRef del(Boolean del) {
		this.del = del;
		return this;
	}

	@Override
	public String getDelBy() {
		return delBy;
	}

	/**
	 * 设置删除人ID
	 *
	 * @param delBy 删除人ID
	 * @return 当前对象
	 */
	public GiftGoodsRef delBy(String delBy) {
		this.delBy = delBy;
		return this;
	}

	@Override
	public LocalDateTime getDelTime() {
		return delTime;
	}

	/**
	 * 设置删除时间
	 *
	 * @param delTime 删除时间
	 * @return 当前对象
	 */
	public GiftGoodsRef delTime(LocalDateTime delTime) {
		this.delTime = delTime;
		return this;
	}
}
